package developer.zyk.global.util;

import java.util.Objects;

/**
 * @author zhangyongkang
 * @time 2025/5/15 20:17
 * @description
 */
public class AssertUtil {


    public static void assertTrue(boolean flag, String message) {
        if (!flag) {
            throw new RuntimeException(message);
        }
    }

    public static void assertNonNull(Object object, String message) {
        if (Objects.isNull(object)) {
            throw new RuntimeException(message);
        }
    }
}
